{config_load file=info.conf section="links"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#title#}</title>
{#css_style#}{#js_query#}{#js_getday#}
</head>
<body>
{include file="head.tpl"}
 <div class="waps">
       <div class="con">     
            <div  class="nopa">
            	<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
                    <div class="pbox">
					<!--左框架开始 -->
						{include file="user_left.tpl"}
						<!--左框架结束-->
						<div class="ls_rbox">
							<div class="am_title"><span class="lsfonts_r">用户审核</span></div>
							<div class="listers">
	                           	<table>
	                           		<tr>
                                        	<td  class="step_rulname" valign="top">用户注册信息:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<div id="t_info" class="warning" style="background-color: rgb(255,255,229);border:1px solid rgb(255,204,127);">
	                                            	<table>
														<tr><td colspan="2">姓名：{$udata.name}&nbsp;&nbsp;会员名：{$udata.nick}</td></tr>
														<tr><td>公 司 名：</td><td>{$udata.cname}</td></tr>
														<tr><td>公司地址：</td><td>{$udata.cadd}</td></tr>
														<tr><td>联系方式：</td><td>TEL:{$udata.tel}&nbsp;&nbsp;QQ:{$udata.qq}&nbsp;&nbsp;MSN:{$udata.msn}</td></tr>
													</table>
                                            	</div>
                                            </td>
                                        </tr>
                                  	<tr>
                                  	<tr>
                                        	<td  class="step_rulname" valign="middle">用户类型:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<select name="type" id="type">
                                          			<option value="" {if !$udata.type}selected="selected"{/if}></option>
	                                          		<option value="物流公司" {if $udata.type=="物流公司"}selected="selected"{/if}>物流公司</option>
	                                          		<option value="贸易公司" {if $udata.type=="贸易公司"}selected="selected"{/if}>贸易公司</option>
	                                          		<option value="内部同事" {if $udata.type=="内部同事"}selected="selected"{/if}>内部同事</option>
                                          		</select>
                                            </td>
                                    </tr>
                                     <tr>
                                        	<td  class="step_rulname" valign="middle">有效期:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="valid" class="step_txt" type="text" style=" cursor:pointer;width:160px;" value="{$udata.valid|date_format:'%Y-%m-%d'}" onclick="SelectDate(this,'yyyy\-MM\-dd')" readonly="readonly"/>
                                               	<img class="timebz"  src="../images/timebg.png"  onclick="SelectDate(document.getElementById('valid'),'yyyy\-MM\-dd')"/>
                                            </td>
                                       </tr>
                                  	<tr>
                                        	<td  class="step_rulname" valign="middle">附加费 - 20GP:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="add20gp" type="text"  class="step_txt" maxlength="20"  style="width:160px;" value="{$udata.add20gp}"/>
                                            	<span class="step_remark"></span>
                                            </td>
                                      </tr>
                                      <tr>
                                        	<td  class="step_rulname" valign="middle">附加费 - 40GP:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="add40gp" type="text"  class="step_txt" maxlength="20"  style="width:160px;" value="{$udata.add40gp}"/>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                       <tr>
                                        	<td  class="step_rulname" valign="middle">附加费 - 40HC:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="add40hc" type="text"  class="step_txt" maxlength="20"  style="width:160px;" value="{$udata.add40hc}"/>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                       <tr>
                                        	<td  class="step_rulname" valign="top">备注:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<textarea id="aremark" class="step_textarea" style="width:570px; height:60px;" >{$udata.aremark}</textarea>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                       <tr>
                                        	<td  class="step_rulname" valign="middle">审核情况:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input type="radio" name="s" id="s1" value="true" {if $udata.status=="true"}checked=""{/if}/><label for="s1"> 审核通过</label>
                                            	<input type="radio" name="s" id="s2" value="false" {if $udata.status=="false"}checked=""{/if}/><label for="s2"> 审核不通过</label>
                                            	- 原因：<input id="error" type="text"  class="step_txt" maxlength="20"  style="width:370px;" value="{$udata.error}"/>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                  </table>
                                   <table class="next_step" align="center"> 
									<tr> 
										<td><a href="javascript:modify('{$rid}');"><div class="next_btn">审 核</div></a></td></td>
										<td><a href="list.php"><span>返回列表</span></a></td> 
									</tr> 
									</table>
                            </div>
						</div>
						<!--右框架结束-->
					<div class="clear"></div>
</div></div></div></div>
<div id="test"></div>
{include file="foot.tpl"}
<script type="text/javascript">
{literal}
function modify(i){
	var type=encodeURIComponent($.trim($("#type").attr("value")));
	var valid=encodeURIComponent($.trim($("#valid").val()));
	var status=$("input[name=s][checked=='']").attr("value");
	var add20gp=encodeURIComponent($.trim($("#add20gp").attr("value")));
	var add40gp=encodeURIComponent($.trim($("#add40gp").attr("value")));
	var add40hc=encodeURIComponent($.trim($("#add40hc").attr("value")));
	var aremark=encodeURIComponent($.trim($("#aremark").attr("value")));
	var error=encodeURIComponent($.trim($("#error").attr("value")));
	var params ={act:"modify",i:i,type:type,valid:valid,s:status,add20gp:add20gp,add40gp:add40gp,add40hc:add40hc,aremark:aremark,error:error};
	$.post('verify.php',params,function(data) {
		if(data=="100"){
			window.history.back();
		}else{
			//$("#test").html(data);
			alert(data);
		}
	});	
}
</script>{/literal}
</body>
</html>